<?php
/**
 * @package PHPKit.
 * @author: mawenpei
 * @date: 2016/11/29
 * @time: 14:14
 */
namespace HuoKit\HuoServer\Adapter\ThinkPHP\WorkerStart;

class InitThinkPHP
{
    public function boot($config)
    {
        define('APP_PATH',$config['thinkphp']['app_path']);
        define('RUNTIME_PATH',$config['thinkphp']['runtime_path']);
        define('CONF_PATH',$config['thinkphp']['conf_path']);
        include_once realpath($config['vendor_path'] . 'autoload.php');
        include_once realpath($config['thinkphp']['tp_path'] . 'base.php');
    }
}